#ifndef DIALOG_H
#define DIALOG_H

#include <QDialog>
#include <QLabel>
#include <QPushButton>
class TimeServer;
QT_BEGIN_NAMESPACE
namespace Ui { class Dialog; }
QT_END_NAMESPACE

class Dialog : public QDialog
{
    Q_OBJECT

public:
    Dialog(QWidget *parent = nullptr);
    ~Dialog();
public slots:
    void slotShow();
private:
    Ui::Dialog *ui;
    QLabel* label1;  //用于显示监听端口
    QLabel* label2;  //用于显示请求次数
    QPushButton* quitBtn;   //退出按钮
    TimeServer* timeServer;
    int count;//请求次数计数
};
#endif // DIALOG_H
